/**
 * 
 */
package edu.sjtu.seda.stage.api;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * @author john.zhu
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StageConfig", propOrder = {
		"stage",
		"eventHandler",
		"eventRejectHandler",
		"eventQueueSize",
		"threadPoolSize",
		"batchEnable",
		"batchSize"
})
public class StageConfig {
	@XmlElement(name ="stage",required = true)
	protected String stage;
	@XmlElement(name ="eventHandler",required = true)
	protected String eventHandler;
	@XmlElement(name ="eventRejectHandler")
	protected String eventRejectHandler;
	@XmlElement(name ="eventQueueSize")
	protected int eventQueueSize;
	@XmlElement(name ="threadPoolSize")
	protected int threadPoolSize;
	@XmlElement(name ="batchEnable")
	protected boolean batchEnable;
	@XmlElement(name ="batchSize")
	protected int batchSize;
	
	public String getStage() {
		return stage;
	}
	public void setStage(String stage) {
		this.stage = stage;
	}
	public int getEventQueueSize() {
		return eventQueueSize;
	}
	public void setEventQueueSize(int eventQueueSize) {
		this.eventQueueSize = eventQueueSize;
	}
	public int getThreadPoolSize() {
		return threadPoolSize;
	}
	public void setThreadPoolSize(int threadPoolSize) {
		this.threadPoolSize = threadPoolSize;
	}
	public boolean isBatchEnable() {
		return batchEnable;
	}
	public void setBatchEnable(boolean batchEnable) {
		this.batchEnable = batchEnable;
	}
	public int getBatchSize() {
		return batchSize;
	}
	public void setBatchSize(int batchSize) {
		this.batchSize = batchSize;
	}
	public String getEventHandler() {
		return eventHandler;
	}
	public void setEventHandler(String eventHandler) {
		this.eventHandler = eventHandler;
	}
	public String getEventRejectHandler() {
		return eventRejectHandler;
	}
	public void setEventRejectHandler(String eventRejectHandler) {
		this.eventRejectHandler = eventRejectHandler;
	}

	
	
}
